/*首页*/

/*1.主要容器宽度100%*/
header,
nav,main,
section,
footer { 
    width: 100%;
}

/*定宽容器的定义*/
.w1200 {
    width: 1200px;
    margin: 0 auto;
}
/*页面顶部栏*/
header { 
    color: #a5a5a5;
    background-color: #282828;
}
/*1.1顶部信息栏 */
.top-nav { 
    display: flex;
    align-items: center;
    height: 3rem;
    /*line-height: 3rem;*/
    font-size: 1.2rem;
}

/*1.2页面logo*/
div.logo { 
    height: 10rem;
    background: #000 url("../images/tp_bg.jpg")no-repeat center center;
}

/*2.导航栏*/
nav { 
    background-color: #8d030A;
}
/*2.1一级导航菜单*/
nav ul { 
    display: flex;
    /*交叉轴居中，也就是通常意义的垂直居中*/
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}
nav ul li { 
    flex: 1;
}
nav ul li a { 
    display: block;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    line-height: 5rem;
    height: 5rem;
    
}

nav li >a{
    font-size: 1.2rem;
}
nav ul li a:hover { 
    color: #fff;
    background-color: #c00;
}
/*导航栏首页的默认样式，后期用js实现*/
nav li:first-of-type >a{ 
    color: #fff;
    background-color: #c00;
}
/*2.2二级导航菜单*/
nav ul.sub-menu { 
    display: none;
    position: absolute;
}

nav li:hover >ul.sub-menu { 
    display: flex;
}

nav li:hover >ul.sub-menu  { 
    display: flex;
    flex-direction: column;
    background-color: #c00;
    width: 100%;
}
nav ul.sub-menu a { 
    color: #fff;
    font-size: 3rem;

}
nav ul.sub-menu a:hover { 
    background-color: #a00;
    width: 12rem;
}

/*3.页面主体*/

.cont a {
    font-size: 15px;
    color: #444444;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 30px;
}

/*4.页面底部*/